<meta charset="UTF-8">

<script>
    var str ="helloworld"
    document.write(str.split("").reverse().join(""));
    
</script>